{% extends "base.html" %}

{% block title %}Site List{% endblock %}
{% block heading %}Site List{% endblock %}

{% block content %}
				
		<table border='1'>
			<tr>
				<th align='left'>Name</th>
				<th align='left'>Category</th>
				<th align='left'>Class</th>
				<th align='left'>Triggers</th>
			</tr>

		{% for site in sites %}
			<tr>
				<td><a href='/viewsite?name={{site.name}}'>{{site.name}}</a></td>
				<td>{{site.category}}</td>
				<td>{{site.wh_class}}</td>
				<td>
					{{site.wave_triggers|join:", "}}&nbsp;
				</td>
			</tr>
		{% endfor %}

		</table>

		<p>
			<a href='/newsite'>[New Site]</a>&nbsp;&nbsp;&nbsp;
		</p>
		
{% endblock %}
